:: 1. 读取当前“Active code page”并保存到变量内
for /f "tokens=2 delims=:" %%i in ('chcp') do set "CurrentCodePage=%%i"
set "CurrentCodePage=%CurrentCodePage:~1%"

:: 2. 切换“Active code page”为“65001”
chcp 65001

:: 在这里执行你需要在code page 936下运行的命令

set src_path=X:
set dir=\svn_backup
set dst_path=W:
robocopy %src_path%%dir% %dst_path%%dir% /XO /S /E /MT:32 /V /UNILOG:log.txt /TEE /UNICODE

pause
:: 3. 还原“Active code page”为变量内保存的值
chcp %CurrentCodePage%
